package com.atguigu.gulimall.search.vo;

import lombok.Data;

import java.util.List;

/**
 * @author houChen
 * @date 2021/11/13 17:40
 * @Description:  封装页面所有可能的查询条件
 */
@Data
public class SearchParam {

    private String keyword;  //全文匹配关键字

    private Long catalog3Id;

     /*
        sort = saleCount_asc/desc
        sort = skuPrice_asc/desc
        sort = hotScore_asc/desc
     */
    private String sort;

    /*
        很多过滤条件
        hasStock(是否有货)：hasStock=0
        skuPrice 区间：skuPrice=1_100/_500/500_    自定义参数格式:1到500  500以内  500以上
        attrs 属性：attrs=1_其他:安卓 选择1号属性时安卓或者其他的
        brandId 品牌Id 可以多选
    */
    private Integer hasStock=0;

    private String skuPrice;

    private List<Long> brandId;

    private List<String> attrs;

    private Integer pageNum = 1;  //页码
}